﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using umbraco.BusinessLogic.console;
using umbraco.cms.businesslogic.media;
using umbraco.BusinessLogic;

namespace TheOutfield.UmbExt.DesktopMediaUploader
{
    public interface IMediaFactory
    {
        [Obsolete] bool CanHandleMedia(int parentNodeId, HttpPostedFile postedFile, User user);

        [Obsolete] Media HandleMedia(int parentNodeId, HttpPostedFile postedFile, User user);
        [Obsolete] Media HandleMedia(int parentNodeId, HttpPostedFile postedFile, User user, bool replaceExisting);

        bool CanHandleMedia(int parentNodeId, PostedMediaFile postedFile, User user);

        Media HandleMedia(int parentNodeId, PostedMediaFile postedFile, User user);
        Media HandleMedia(int parentNodeId, PostedMediaFile postedFile, User user, bool replaceExisting);
    }
}